<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>


<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>宁波分公司通讯录系统</title>



<style type="text/css">
STYLE2{
   font-size: 10px;
   
   }
.STYLE9 {font-size: 16px}
<!--
.STYLE1 {font-size: 14px}
-->
</style>



</head>
<body>
	<iframe width=100% height=300 scrolling="no"
		src="http://10.111.4.5/top.htm" frameborder="no" noresize="NoResize"></iframe>
	<h1 align="center" class="STYLE1">宁波分公司通讯录系统- 通讯录修改</h1>
<br>
<form id="txlForm">
<table width=32% border="0" align="center" cellspacing = 1 cellpadding = 2 >
  <tr>
	<!-- <td width="37%" bgcolor="#507CD1"  ><span class="STYLE2 STYLE9">ord</span></td> -->
	<td width="63%" id="ord" nowrap>
		
		<input name="ord" value="${ord}" type="hidden" />
	</td>
  </tr> 


  <tr>

	<td width="37%" bgcolor="#507CD1"  ><span class="STYLE2 STYLE9">部门名称</span></td>
	
	<td width="63%" nowrap><select name="bumen">
						<option value="" selected>请选择</option>
						<option value='总经理室'>总经理室</option>
						<option value='办公室'>办公室</option>
						<option value='人力资源部'>人力资源部</option>
						<option value='财务部'>财务部</option>
						<option value='企划部'>企划部</option>
						<option value='个人业务部'>个人业务部</option>
						<option value='银行保险业务发展部'>银行保险业务发展部</option>
						<option value='银行保险销售支援部'>银行保险销售支援部</option>
						<option value='教育培训部'>教育培训部</option>
						<option value='运营服务部'>运营服务部</option>
						<option value='保费部'>保费部</option>
						<option value='城区支公司'>城区支公司</option>
						<option value='象山营销服务部'>象山营销服务部</option>
						<option value='余姚营销服务部'>余姚营销服务部</option>
						<option value='北仑营销服务部'>北仑营销服务部</option>
						<option value='宁海支公司'>宁海支公司</option>
						<option value='长街营销服务部'>长街营销服务部</option>
						<option value='慈溪营销服务部'>慈溪营销服务部</option>
						<option value='鄞州'>鄞州</option>
				</select></td>
	
  </tr>
	 <tr><td bgcolor="#507CD1" ><span class="STYLE2 STYLE9">姓名</span></td>
	
	<td nowrap><input name="name" type="text" maxlength="18" id="na" onblur="chkvalue(this)"></td>
	
	</tr>
	<tr><td bgcolor="#507CD1" ><span class="STYLE2 STYLE9">分属科室</span></td>
	
	<td nowrap><input name="keshi" type="text" maxlength="18" id="ke"></td>
	
	</tr>
	<tr><td bgcolor="#507CD1" ><span class="STYLE2 STYLE9">IP分机</span></td>
	
	<td nowrap><input name="ip" type="text"maxlength="18"></td>
	
	</tr>
	<tr><td  bgcolor="#507CD1" ><span class="STYLE2 STYLE9">直线电话</span></td>
	
	<td nowrap><input name="zhixian" type="text"  maxlength="18"></td>
	
	</tr>
	<tr><td bgcolor="#507CD1" ><span class="STYLE2 STYLE9">直线虚拟号</span></td>
	
	<td nowrap><input name="zhixianxuni" type="text"  maxlength="18"></td>
	
	</tr>
	<tr><td bgcolor="#507CD1" ><span class="STYLE2 STYLE9">手机</span></td>
	
	<td nowrap><input name="mob" type="text" maxlength="18"></td>
	
	</tr>
	<tr><td bgcolor="#507CD1" ><span class="STYLE2 STYLE9">虚拟网号码</span></td>
	
	<td nowrap><input name="xunihao" type="text"  maxlength="18"></td>
	
	</tr>
	<tr><td bgcolor="#507CD1" ><span class="STYLE2 STYLE9">EMAIL地址</span></td>
	
	<td nowrap><input name="email" type="text"  maxlength="38" id="mail" onblur="chkvalue2(this)"></td>
	
	</tr>
    <tr><td colspan="2" ><div align="center">
       <input name="button" type="button" onClick="forwordtxl();" value="返回" /><input name="button" type="button" onClick="addtxl();" value="保存" />
    </div></td>
  </tr>
    
 <%-- 	
	<tr id1="${txl.id1 }">
		<td bordercolor="1" "><input name="bumen" type="text" value="${txl.bumen }" maxlength="18"></td>
		<td bordercolor="1" "><input name="name" type="text" value="${txl.name }" maxlength="6"></td>
		<td bordercolor="1" "><input name="keshi" type="text" value="${txl.keshi }"></td>
		<td bordercolor="1" "><input name="ip" type="text" value="${txl.ip }"></td>
		<td bordercolor="1" "><input name="zhixian" type="text" value="${txl.zhixian }"></td>
		<td bordercolor="1" "><input name="zhixianxuni" type="text" value="${txl.zhixianxuni }"></td>
		<td bordercolor="1" "><input name="mob" type="text" value="${txl.mob }"></td>
		<td bordercolor="1" "><input name="xunihao" type="text" value="${txl.xunihao }"></td>
		<td bordercolor="1" "><input name="email" type="text" value="${txl.email }"></td>
		<td>
			<input type = "button"  onclick="revisetxl(this);" value = "保存"  />		</td>
	</tr>
 --%>
	</table>
</form>	
	
	

	<iframe width=100% height=300 scrolling="no"
		src="http://10.111.4.5/bottom.htm" frameborder="no"
		noresize="NoResize"></iframe>
	<!-- jQuery 1.7.2 or higher -->
	


	<script src="<%=request.getContextPath()%>/resources/js/jquery-1.9.0.min.js"></script>
	<script src="<%=request.getContextPath()%>/resources/js/bootstrap.min.js"></script>
	<script type="text/javascript">
	
	
	
	function forwordtxl(){
		window.location.href="txl_edit"	;
	}
	
	
	
	function addtxl(){
		
		var param=$("#txlForm").serialize();
		
		$.post("addTxl",
			param
			
		,function(data){
			alert(data);
		}); 
	}
		
	
	function chkvalue(txt) {
	    if(txt.value=="") alert("姓名不能为空!");
	  
	else document.getElementById("na").value=document.getElementById("na").value.replace(/\s/gi,'');
	} 
	
	function chkvalue2(txt) {
	    if(txt.value=="") alert("邮箱不能为空!");
	  
	else document.getElementById("mail").value=document.getElementById("mail").value.replace(/\s/gi,'');
	} 
	</script>
	



</body>

</html>
